package unimelb.discussiontracker.twitter.web.converter;

import unimelb.discussiontracker.twitter.data.entity.HashTagRanking;
import unimelb.discussiontracker.twitter.web.model.HashTagItem;

public class HashTagRankingToHashTagItemConverter extends AbstractListConverter<HashTagRanking, HashTagItem> {

    @Override
    public HashTagItem convertItem(HashTagRanking entity) {
        return new HashTagItem(entity.getHashTag().getId(), entity.getHashTag().getValue(), entity.getStrength());
    }

}
